{include file="public_head" /}

<!-- datatables -->
<link href="__STATIC__/js/datatables/jquery.dataTables.min.css" rel="stylesheet" type="text/css"/>
<!-- chk_3 -->
<link href="__STATIC__/css/chk_3.css" rel="stylesheet" type="text/css"/>

<body class="nav-md">

<div class="container body">


    <div class="main_container">

        {include file="public_sidebar,public_nav" /}

        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h3>

                        </h3>
                    </div>
                </div>
                <div class="clearfix"></div>

                <div class="row">

                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>门店礼包提成->{$title}</h2>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">

                                <form name="form" id="form" method="post" action="">
                                    <table style="border-bottom:1px solid #ddd;"
                                           class="table table-striped table-bordered table-hover">
                                        <thead>
                                        <tr class="success">
                                            <!--<th style="width: 2%; padding: 10px;">-->
                                                <!--<input type="checkbox" class="checkall"-->
                                                       <!--onclick="CheckAll(this.checked);"/>-->
                                            <!--</th>-->
                                            <!--<th>排序</th>-->
                                            <th >ID</th>
                                            <th >门店名称</th>
                                            <th style="width: 200px;">门店商品提成</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        {empty name="shop_list"}
                                            <tr><td colspan="5"><div style='font-size:24px;margin:30px 0;'>没有找到记录</div></td></tr>
                                        {/empty}
<input type="hidden" name="id" value="{:input('id')}" />
                                        {volist name="shop_list" id="item"}
                                        <tr class="cat_"  >
                                            <td>{$item.id}</td>
                                           <td>{$item.shop_title}</td>
                                            <td><input class="form-control" style="text-align: center" type="text" name="input2[{$item.id}]" value="{$item.price|default=''}" ></td>
                                        </tr>
                                        {/volist}
                                        </tbody>
                                        <tr>
                                            <td colspan="3" style="text-align: left;">
                                                <span>控制：</span>
                                                <a style="color:#428BCA"
                                                   href="javascript:UpOrderID('{:url(\'shop_ticheng\',[\'id\' => input(\'id\')])}');">更新门店礼包金额</a>
                                            </td>
                                        </tr>
                                    </table>
                                    <!--<button type="button" class="btn btn-info" style="" onclick="dc({:input('coupon_id')})">服务类导出</button>-->
                                </form>
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </div>
        <!-- /page content -->
    </div>

</div>
<style>
    .minusSign{ background-position: 0 -34px}
</style>
{include file="public_foot" /}
<!-- public -->
<script src="__STATIC__/js/public.js"></script>
<!-- layer -->
<script src="__STATIC__/js/layer.js"></script>
<script>
        $('.click_cat_1').click(function(){
            var of = $(this).attr('id');
            if(of == 'on'){ //当时按钮列表是开启 就关闭
                $(this).attr('id','off');
                $(this).parent().parent('tr').nextUntil('.cat_1').hide();
                $(this).css("background-position","0 9px");
                //$(this).find('td').eq(1).find('span').css("background-position","0 9px");
            }else{
                $(this).attr('id','on');
                $(this).parent().parent('tr').nextUntil('.cat_1').show();
                $(this).css("background-position","0 -34px");
            }
        });

        function dc() {
            var title = "{:input('title')}";
            window.location.href = "{:url('index')}?export=123&pa=10000&title=" + title;
        }
</script>